package com.rain.springmvc.controller;

import com.rain.springmvc.entity.TestDto1;
import com.rain.springmvc.entity.TestDto2;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Rain
 * @version 1.0
 * @create 2021-5-8-008 16:30
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @PostMapping("/double/dto")
    public String test(TestDto1 dto1, TestDto2 dto2) {
        System.out.println("dto1 = " + dto1);
        System.out.println("dto2 = " + dto2);
        return "good";
    }
}
